<template>
    <div>
        
        Ecoin: {{ coin }}
        <br>
        <el-button class="cash" @click="change">提现</el-button>
    </div>

</template>

<script>
import Axios from 'axios';

export default{
    data(){
        return{
            coin:100
        };
    },


    methods:{

        change(){
            this.$confirm('是否确定提现？','提示',{
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning'
            }).then(()=>{
                this.$message({
                    type:'success',
                    message:'提现成功！'
                });
                this.coin = 0;
            }).catch(()=>{
                this.$message({
                    type:'info',
                    message:'已取消'
                });
            });
        }
    }
};




</script>

<style>
.cash{
    margin-top: 50px;
}
</style>